package cn.edu.sdjzu.xg.eagle.mapper;

import cn.edu.sdjzu.xg.eagle.entities.ClubApplication;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ClubApplicationMapper {
    // 查询所有社团申请记录
    List<ClubApplication> findAllClubApplications();

    // 添加 @Param 注解
    ClubApplication findClubApplicationByIdAndTime(
            @Param("applicantId") Integer applicantId,
            @Param("applyTime") java.util.Date applyTime
    );

    int addClubApplication(ClubApplication clubApplication);

    // 添加 @Param 注解
    int updateClubApplication(ClubApplication clubApplication);

    // 添加 @Param 注解
    int deleteClubApplication(
            @Param("applicantId") Integer applicantId,
            @Param("applyTime") java.util.Date applyTime
    );
}